/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package backing;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;

/**
 *
 * @author XJ
 */
@ManagedBean
public class MarkReviewBacking {
    @ManagedProperty(value="")
    private String name;
    @ManagedProperty(value="")
    private int ID;
    @ManagedProperty(value="")
    private String major;
    @ManagedProperty(value="")
    private String school;
    @ManagedProperty(value="")
    private String grade;
    @ManagedProperty(value="")
    private String teacher;
    @ManagedProperty(value="")
    private String class_name;
    @ManagedProperty(value="")
    private String class_number;
    @ManagedProperty(value="")
    private String test_time;
    @ManagedProperty(value="")
    private String test_room;
    @ManagedProperty(value="")
    private String kind_of_test;
    @ManagedProperty(value="")
    private String original_mark;
    @ManagedProperty(value="")
    private String reason;
    @ManagedProperty(value="")
    private String student_edu_office_opinion;
    @ManagedProperty(value="")
    private String class_edu_office_opinion;
    @ManagedProperty(value="")
    private String class_school_opinion;
    @ManagedProperty(value="")
    private String result;
   private String decision;

    public String getDecision() {
        return decision;
    }

    public void setDecision(String decision) {
        this.decision = decision;
    }
    
    private String[] disabled=new String[3];
    
    public MarkReviewBacking() {
    }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getClass_edu_office_opinion() {
        return class_edu_office_opinion;
    }

    public void setClass_edu_office_opinion(String class_edu_office_opinion) {
        this.class_edu_office_opinion = class_edu_office_opinion;
    }

    public String getClass_name() {
        return class_name;
    }

    public void setClass_name(String class_name) {
        this.class_name = class_name;
    }

    public String getClass_number() {
        return class_number;
    }

    public void setClass_number(String class_number) {
        this.class_number = class_number;
    }

    public String getClass_school_opinion() {
        return class_school_opinion;
    }

    public void setClass_school_opinion(String class_school_opinion) {
        this.class_school_opinion = class_school_opinion;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getKind_of_test() {
        return kind_of_test;
    }

    public void setKind_of_test(String kind_of_test) {
        this.kind_of_test = kind_of_test;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOriginal_mark() {
        return original_mark;
    }

    public void setOriginal_mark(String original_mark) {
        this.original_mark = original_mark;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getStudent_edu_office_opinion() {
        return student_edu_office_opinion;
    }

    public void setStudent_edu_office_opinion(String student_edu_office_opinion) {
        this.student_edu_office_opinion = student_edu_office_opinion;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public String getTest_room() {
        return test_room;
    }

    public void setTest_room(String test_room) {
        this.test_room = test_room;
    }

    public String getTest_time() {
        return test_time;
    }

    public void setTest_time(String test_time) {
        this.test_time = test_time;
    }

    public String[] getDisabled() {
        return disabled;
    }

    public void setDisabled(String[] disabled) {
        this.disabled = disabled;
    }
    
    public String commitForm(){
        String outcome=null;
        
        return outcome;
    }
    public String setPermission(){
        String [] s={"false","true","true","true","true"};
        this.setDisabled(s);
        return "mark_review_form";
    }
    public String fillForm(String s){
        if(s.equals("apply"))
            this.setPermission();
        return "mark_review_form";
    }
}
